package com.example.certificate.dto;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "用户修改登录密码")
@Data
public class UpdatePassDto {

    @NotBlank(message = "密码不能为空",groups = {updateData.class})
    private String password;

    @NotBlank(message = "请再次输入密码",groups = {updateData.class})
    private String newPass;

    @NotBlank(message = "手机号不能为空",groups = {updateData.class})
    private String phone;

    @NotBlank(message = "验证码不能为空",groups = {updateData.class})
    private String code;

    public interface updateData{}
}
